<template>
    <div>
        useLastChange
        <p>count:{{ count }}</p>
        <p>lastChange: {{ lastChange }}</p>
        <p>now:{{ now }}</p>
        <button @click="count++">add</button>
    </div>
</template>

<script setup>
import {useLastChanged, useDateFormat, useNow} from '@vueuse/core'
import {ref} from 'vue'

const count = ref(1)
const lastChange = useDateFormat(useLastChanged(count), 'YYYY-MM-DD HH:mm:ss.SSS')
const now = useNow();
</script>